package com.hujun.launch;
import java.util.Date;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.alibaba.fastjson.JSON;
import com.hujun.service.Itest;


@RestController
@EnableAutoConfiguration
@ComponentScan(basePackages = { "com.hujun"})
@MapperScan(basePackages={"com.hujun.dao"})
public class Application {
	@Autowired
	private Itest itest;
    @RequestMapping("/")
    String home() {
    	System.out.println(JSON.toJSON(itest.select(1)));
        return "111";
    }



    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }

}